package com.un.ebs.inventory.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (EntRelationConsume)表实体类
 *
 * @author makejava
 * @since 2021-03-15 10:30:09
 */
@Data
@Component
@TableName("tb_ent_relation_consume")
@SuppressWarnings("serial")
public class EntRelationConsume extends Model<EntRelationConsume> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "ent_relation_id",  length = 40 , precision = 0)
    private String entRelationId;
                
    @DbField(name = "consume_money",  length = 18 , precision = 4)
    private Double consumeMoney;
                
    @DbField(name = "order_id",  length = 40 , precision = 0)
    private String orderId;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}